import request from '@/utils/request'

// 查询NB插拔卡管理列表
export function getList(query) {
  return request({
    url: '/system/NBPlugCardController/listByPage',
    method: 'get',
    params: query
  })
}

// 新增NB插拔卡管理
export function addPage(data) {
  return request({
    url: '/system/NBPlugCardController/add',
    method: 'post',
    data: data
  })
}

// 修改NB插拔卡管理
export function editPage(data) {
  return request({
    url: '/system/NBPlugCardController/edit',
    method: 'post',
    data: data
  })
}

// 删除NB插拔卡管理
export function delPage(id) {
  return request({
    url: '/system/NBPlugCardController/removeById/' + id,
    method: 'delete',
  })
}

// NB插拔卡明细数据分页获取
export function listNBPlugCardDetailController(query) {
  return request({
    url: '/system/NBPlugCardDetailController/listDetailByPage',
    method: 'get',
    params: query
  })
}

// 添加插拔卡明细数据
export function addNBPlugCardDetailController(data) {
  return request({
    url: '/system/NBPlugCardDetailController/add',
    method: 'post',
    data: data
  })
}

// 修改插拔卡明细数据
export function editNBPlugCardDetailController(data) {
  return request({
    url: '/system/NBPlugCardDetailController/edit',
    method: 'post',
    data: data
  })
}